package cn.buk.api.szkj.dto.eterm;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;
import java.util.List;

public class DetrInfo {

  @JsonProperty(value = "TKTN")
  private String ticketNo;

  @JsonProperty(value = "PASSENGER")
  private String name;

  @JsonProperty(value = "ORG")
  private String dport;

  @JsonProperty(value = "DST")
  private String aport;

  @JsonProperty(value = "FARE")
  private double parValue;

  @JsonProperty(value = "TAX")
  private double tax;

  @JsonProperty(value = "TOTAL")
  private double total;
//                      "FOP": "",
//                      "CN": "50.00",
//                      "YQ": "",
//                      "OI": "",
  @JsonProperty(value = "ER")
  private String endorsement;

  @JsonProperty(value = "SKYINFO")
  private List<DetrFlightInfo> flights;

  /**
   * DETR原始结果
   */
  @JsonProperty(value = "RAWDATA")
  private String detrDetail;

  public String getTicketNo() {
    return ticketNo;
  }

  public void setTicketNo(String ticketNo) {
    this.ticketNo = ticketNo;
  }

  public String getDport() {
    return dport;
  }

  public void setDport(String dport) {
    this.dport = dport;
  }

  public String getAport() {
    return aport;
  }

  public void setAport(String aport) {
    this.aport = aport;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public double getParValue() {
    return parValue;
  }

  public void setParValue(double parValue) {
    this.parValue = parValue;
  }

  public double getTax() {
    return tax;
  }

  public void setTax(double tax) {
    this.tax = tax;
  }

  public double getTotal() {
    return total;
  }

  public void setTotal(double total) {
    this.total = total;
  }

  public String getEndorsement() {
    return endorsement;
  }

  public void setEndorsement(String endorsement) {
    this.endorsement = endorsement;
  }

  public List<DetrFlightInfo> getFlights() {
    if (flights == null) {
      this.flights = new ArrayList<>();
    }
    return flights;
  }

  public void setFlights(List<DetrFlightInfo> flights) {
    this.flights = flights;
  }

  public String getDetrDetail() {
    return detrDetail;
  }

  public void setDetrDetail(String detrDetail) {
    this.detrDetail = detrDetail;
  }
}
